﻿@model Adams.Web.Areas.MyAdams.Models.Classifieds.Create.PageLoad
@{
    Layout = "~/Views/Shared/_MembershipLayout.Mobile.cshtml";
}
@section Head{
    
}
<h1>
    Add Classified</h1>
<div id="form">
    <div id="notif">
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>Category:</div>
        <div class="form-right">
            <select id="TypeID" class="option">
                <option value="">Choose Type...</option>
                @foreach (var typ in Model.Types)
                {
                    <option value="@typ.ID" @(Model.Posting.ID > 0 && Model.Posting.Category.Type.ID == typ.ID ? "selected" : "")>@typ.Name</option>
                }
            </select>
            <select id="CategoryID" class="option">
                <option value="">Choose Category...</option>
                @foreach (var cat in Model.Categories)
                {
                    <option value="@cat.ID" @(Model.Posting.ID > 0 && Model.Posting.Category.ID == cat.ID ? "selected" : "")>@cat.Name</option>
                }
            </select>
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>Title:</div>
        <div class="form-right">
            <input type="text" class="input" id="Title" value="@Model.Posting.Title" />
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>Price:</div>
        <div class="form-right">
            <input type="text" class="input" id="Price" value="@Model.Posting.Price" />
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>Location:</div>
        <div class="form-right">
            <input type="text" class="input" id="Location" value="@Model.Posting.Location" />
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>ReplyTo:</div>
        <div class="form-right">
            <input type="text" class="input" id="ReplyTo" value="@Model.Posting.ReplyTo" />
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            <span class="required">*</span>Description:</div>
        <div class="form-right">
            <textarea class="textareainput" id="Description" cols="79" rows="15">@Model.Posting.Description</textarea>
        </div>
    </div>
    <div class="form-left">
        <div class="form-text">
            &nbsp;</div>
        <div class="form-right">
            <a href="#">
                <img src="/Content/Images/submit.jpg" alt="Submit" border="0" id="submit" /></a></div>
    </div>
    <div class="clear">
    </div>
    <input id="id" type="hidden" value="@Model.Posting.ID" />
</div>
@section Scripts {
    <script src="/Areas/MyAdams/Scripts/Classifieds/create.js" type="text/javascript"></script>
}